﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Configuration;

namespace loveyou.Controllers
{
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            var extPort = ConfigurationManager.AppSettings["extPort"];

            if (string.IsNullOrEmpty(extPort))
            {
                extPort = this.HttpContext.Application["WebSocketPort"].ToString();
            }
            ViewBag.UserName = UserName;
            ViewBag.ExtPort = extPort;
            ViewBag.Message = "Welcome to ASP.NET MVC!";
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
